package com.ssy.lingxi.order.model.dto;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单商品DTO
 * @author 万宁
 * @version 2.0.0
 * @date 2021-08-12
 */
public class OrderProductDTO implements Serializable {
    private static final long serialVersionUID = 3896447720603031893L;

    public OrderProductDTO() {
        this.productId = 0L;
        this.skuId = 0L;
        this.productNo = "";
        this.quantity = BigDecimal.ZERO;
    }

    public OrderProductDTO(Long productId, Long skuId, BigDecimal quantity) {
        this.productId = productId;
        this.skuId = skuId;
        this.productNo = "";
        this.quantity = quantity;
    }

    /**
     * 商品（物料）Id
     */
    private Long productId;

    /**
     * 商品SkuId
     */
    private Long skuId;

    /**
     * 商品（物料）编号
     */
    private String productNo;

    /**
     * 商品（物料）购买数量
     */
    private BigDecimal quantity;

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public String getProductNo() {
        return productNo;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo;
    }

    public BigDecimal getQuantity() {
        return quantity;
    }

    public void setQuantity(BigDecimal quantity) {
        this.quantity = quantity;
    }
}
